<style>
body {
	background: #fbefe2;
}
ul.square {list-style-type:square}
.green {color:#09ba07}
.green-bg {background:#09ba07}
.fui-content{background:#fbefe2}
.fui-list-inner .vip {
	background: #09ba07 none repeat scroll 0 0;
    color: #fff;
    position: absolute;
    margin-left: 0.2rem;
    height: 0.75rem;
    width: 0.75rem;
    vertical-align: top;
    z-index: 100;
    line-height: 1.1;
    text-align: center;
    border-radius: 0.85rem;
}
.fui-cell.post-image { display: none}

.fui-list-media .r-icon{height:1.3rem;width:1.3rem;border-radius:100%;background:#09ba07}

.sns-post-detail-page .text-reply {
    padding:.2rem 0;color:red; color:#333; font-size:.75rem; word-break: break-all;
}
.sns-post-detail-page .text-time {
    color:red; color:#999; padding-top:.2rem;
}

.sns-post-detail-page .text-remark {
    font-size:.6rem;
}
.sns-post-detail-page .text-time .link { color: #999; }
.sns-post-detail-page .text-time .link .icon { font-size:.6rem;}
.sns-post-detail-page .text-time .link.selected { color: #1c84c6}
.sns-post-detail-page .text-parent {
    margin-left:.2rem;
    margin-top:.2rem;
    padding-bottom:.2rem;
}
.text-parent .org{color:#eb7350;}


.sns-post-detail-page .reply-list {

    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: start;
    height:auto;
}

.sns-post-detail-page .reply-avatar {
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: start;
    height:auto;
}

.sns-post-detail-page .reply-avatar img {
    width:2rem;height:2rem;
    -webkit-border-radius:2rem;
    -moz-border-radius:2rem;
    border-radius:2rem;


}
.sns-post-detail-page .post-detail-avatar img {
    width:2.2rem;height:2.2rem;
    -webkit-border-radius:2.2rem;
    -moz-border-radius:2.2rem;
    border-radius:2.2rem;

}
.item-content {background-color: #fff;border-radius: 10px;padding:0.5rem;margin:0.5rem}
.item-buy-log {margin:0.2rem;padding: 0.5rem;background-color: #def9eb;border-radius: 10px;}
.item-line-nav {margin:0.2rem;padding: 0.1rem;background-color: #def9eb;border-radius: 10px;text-align:center;line-height:1.2rem}
.item-follow-line {border-bottom: 1px solid #ebebeb;color:#61bba7;font-size:0.56rem;padding-bottom:0.3rem}
.item-msg-line {font-size:0.56rem;padding-top:0.3rem}
.fui-number .minus:before, .fui-number .plus:before {
	border-left: 0 solid #d9d9d9;
}
.fui-number .minus:after, .fui-number .plus:after {
	border-right: 0 solid #d9d9d9;
}
.fui-number:before {
	border-top: 0 solid #d9d9d9;
}
.fui-number:after {border-top: 0 solid #d9d9d9;}
.fui-number .num {
	color:#666;
}
.fui-number .num {
	color:#666;
}
.fui-number.small {
	height: 1.2rem;
	width: 3.6rem;
	line-height: 1.2rem;
}
.fui-number .minus, .fui-number .plus {
	z-index:0;
}
.fui-number.small .minus{
	color: {{main.syscolor || '#63BE72'}};
	padding-top:1px;
	border: 1px solid {{main.syscolor || '#63BE72'}};
	border-radius:50%;
}
 .fui-number.small .plus {
	color: #fff;
	padding-top:1px;
	background: {{main.syscolor || '#63BE72'}};
	border: 1px solid {{main.syscolor || '#63BE72'}};
	border-radius:50%;
}
.fui-number.small .minus, .fui-number.small .plus {
	width: 1.1rem;
	height: 1.1rem;
	line-height: 1.0rem;
	font-size: .8rem;
	color: red;
	background: #fff;
}
</style>
<div class="fui-page fui-page-current  fui-page-current" >
	<div class="fui-content">
		<div class="fui-shopsign">
				<div class="store">
					<img class="storeimg" ng-src="{{tomedia(pagedata.pluginset.o_img) || '../addons/jy_quan/resource/images/banner.png'}}" style="max-height:400px"/>
					<div class="fui-list-group" style="margin:5px;">
						<div class="fui-list">
							<div class="fui-list-media" ng-click="access_json(main.current_plugin+'/index//quanid='+pagedata.user.mid)">
								<img ng-src="{{tomedia(pagedata.member.avatar || '../core/resource/images/nopic.jpg')}}" style=" border-radius: 10px;width:2rem;height:2rem">
							</div>
							<div class="fui-list-inner" ng-click="access_json(main.current_plugin+'/index//quanid='+pagedata.user.mid)">
								<div class="title" style="color:#333">{{pagedata.member.nickname || '未知用户'}}<span class="vip"><i class="icon jinyunicon icon-vip5" style="font-size:0.5rem;padding-left:0.1rem;color:#fff"></i></span></div>
								<div class="text" style="color:#999;font-size:0.65rem"> {{pagedata.item.createtime || '12/20 11:18'}} 有{{pagedata.item.looks || 0}}人看过</div>
							</div>
							<div class="fui-list-media">
								<span class="r-icon" onclick="$('#showsharecover').modal();">
									<i class="icon icon-weixin-copy" style="padding:0.2rem;color:#fff;font-size:0.9rem"></i>
								</span>
								<span class="r-icon" style="background:#f60;margin-left:0.6rem" onclick="$('#showsharecover').modal();">
									<i class="icon icon-skip" style="padding:0.2rem;color:#fff;font-size:0.9rem"></i>
								</span>
							</div>
							
						</div>
					</div>
				</div>
		</div>
		<div class="content-block item-content">
			<div ng-if="pagedata.item.type ==4" class="fui-card-content">
				<img src="../addons/jy_quan/resource/images/readtpl0{{pagedata.item.readtpl || 1}}.jpg" style="width:100%">	
			</div>
			<div class="fui-card-content" style="margin-bottom:0.5rem">
				<b class="fui-card-content-title">
					{{pagedata.item.title || '没有标题'}}
				</b>
				<div ng-if="pagedata.item.type ==1" ng-init="tool.time_down(pagedata.item.onlinetime2)">
					<div ng-class="{'red':1,'disabled':pagedata.item.endstatus==0}" style="margin:0.2rem 0;font-size:0.7rem;">
					<i class="icon icon-task-management"></i>
					<span class="day" >结束到计时：{{pagedata.item.onlinetime2.day}}</span><span class="time">天</span>
					<span class="hour">{{pagedata.item.onlinetime2.hour}}</span><span class="time">小时</span>
					<span class="minute">{{pagedata.item.onlinetime2.minute}}</span><span class="time">分</span>
					<span class="second">{{pagedata.item.onlinetime2.second}}</span><span class="time">秒</span>
					</div>
				</div>
			</div>
			<div ng-if="pagedata.item.goods.title" class="fui-card-content fui-goods-group no">
				<div class="fui-goods-item" style="padding:0">
					<div ng-if="!pagedata.item.goods.video || pagedata.shopset.no_video==1" ng-class="{'image':1, 'echelon':pagedata.item.goods.active.title}" data-text="{{pagedata.item.goods.active.title}}" style="width:5rem;height:5rem;background-image: url('{{tomedia(pagedata.item.goods.image) ||'../core/resource/images/nopic.jpg'}}')">
							<div ng-show="pagedata.item.goods.total <=0" class="salez" style="background-image: url('{{tomedia(pagedata.shopset.shop.saleout)}}'); "></div>
					</div>
					<div ng-if="pagedata.item.goods.video && pagedata.shopset.no_video !=1" class="image" style="padding-bottom:0">
						 <video id="my-video" class="video-js vjs-fluid" style="width:100%;height:100%;object-fit:fill" x5-playsinline="" playsinline=""
						  poster="{{tomedia(pagedata.item.goods.image) || '../core/resource/images/nopic.jpg'}}"
						  data-setup='{"controls": true, "autoplay": false}'>
						  <source ng-src="{{tomedia(pagedata.item.goods.video)}}" type="video/mp4">					 
						</video>
						
					</div>
					<div class="detail" style="height:auto;max-width:10rem">
						<div class="name overflow-h bold">
								<i ng-show="pagedata.item.goods.ispresell == 1" class="fui-tag fui-tag-danger">预售</i>
								{{pagedata.item.goods.title}}
						</div>
						<div><div class="fui-tag fui-tag-danger" style="background:linear-gradient(to right,rgba(244,221,187,0.6),rgba(235,216,174,1));color:#512f0a;width:auto;font-weight:400">{{pagedata.item.goods.merchname || '商户直营'}}</div></div>
						<div class="price" style="position:absolute;margin-top: 0.3rem;bottom:0.2rem;width:10rem">
							<span class="text">￥{{pagedata.item.goods.active.price || pagedata.item.goods.price}} <span class="subtitle" style="font-weight:400">已售{{pagedata.item.goods.salenum || 0}}{{pagedata.item.goods.unit || '件'}}</span></span>
							<span class="fui-buys-info" style="float:right;width:2.5rem">
									<img ng-repeat="j in pagedata.item.jieli" ng-if="$index<2" class="avatar" style="width:1.3rem;height:1.3rem;margin-right:-0.5rem" ng-src="{{tomedia(j.member.avatar) || '../core/resource/images/nopic.jpg'}}">
							</span>
						</div>
					</div>
				</div>
			</div>
			<div ng-if="pagedata.item.looksmember.length>0" class="fui-cell-group" style="border-top: 1px solid #efefef;">
						<div class="fui-cell" style="padding:0.5rem 0">
							<div class="text" style="color: #999;">围观：</div>
							<div class="fui-cell-info" style="width:9rem">
								<img ng-repeat="m in pagedata.item.looksmember" class="avatar" style="margin-right:-0.5rem" ng-src="{{tomedia(m.avatar) || '../core/resource/images/nopic.jpg'}}">
								<img ng-if="pagedata.item.looksmember.length>10" class="avatar" style="margin-right:-0.5rem" src="../addons/jy_weishop/resource/images/avatar-more.jpg">
							</div>
						</div>
			</div>
			<div ng-if="!pagedata.item.goods.content && pagedata.item.content && pagedata.item.content.length>0" class="content-images">
				<div ng-repeat="c in pagedata.item.content">
					<p ng-if="c.type ==1" ng-bind-html="trust(c.data)"></p>
					<img ng-if="c.type ==3" ng-src="{{tomedia(c.data) || '../core/resource/images/nopic.jpg'}}">
					<div ng-if="c.type ==10" class="fui-card-images">
						<img ng-repeat="img in c.data track by $index" ng-click="pagedata.show_bigimage(img)" ng-src="{{tomedia(img) || '../core/resource/images/nopic.jpg'}}" style="width:33.3%;height:4rem;padding:1px" />
					</div>
					<div ng-if="c.type ==11" class="fui-video">
						<video ng-src="{{tomedia(c.data)}}" poster="{{tomedia(c.thumb)}}" height="180" width="100%" controls="" x5-playsinline="" playsinline="" webkit-playsinline="" poster="" preload="auto"></video>
					</div>
					<p ng-if="c.type ==100" ng-bind-html="trust(c.data)"></p>
				</div>
			</div>
			<div ng-if="!pagedata.item.goods.content && pagedata.item.richtext" class="content-images">
				<p ng-bind-html="trust(pagedata.item.richtext)"></p>
			</div>
			<div ng-if="pagedata.item.goods.content" class="content-block content-images" ng-bind-html="trust(pagedata.item.goods.content)"></div>
			<div ng-if="!pagedata.item.goods.title && pagedata.item.type ==1 && pagedata.pluginset.no_pingtuan!=1" class="item-line-nav" onclick="$('#showgroupbuyfloor').modal();" >
				<i class="icon icon-paihao0"></i> <span class="title blod">{{pagedata.item.groupbuytype==1?'总额':'总数'}}拼团</span> <span class="subtitle"> 有{{pagedata.item.groupbuyfloor.length}}个阶梯 点击查看</span>
			</div>
			<div ng-if="!pagedata.item.goods.title && pagedata.item.type ==1" class="fui-list-group">
				<div ng-repeat="(gkey,g) in pagedata.item.fileds" class="fui-list goods-item align-start" style="border:1px solid #f7f7f7;">
				<div class="fui-list-media image-media">
						<a ng-click="">
							<img ng-src="{{tomedia(g.image) || '../core/resource/images/nopic.jpg'}}" class="">
						</a>
				</div>
				<div class="fui-list-inner">
						<a>
							<div class="subtitle">
								<span class='fui-label fui-label-danger'>拼团</span>
								{{g.title}}
							</div>
						</a>
							<div class="text cart-option">
								<div class="choose-option">库存：<span class="num bold" style="font-size:0.65rem;">{{g.kucun}}{{g.unit ||'件'}} </span></div>
								<div ng-repeat="mv in pagedata.item.morefileds" class="choose-option"><span style="color:#999;font-size:0.65rem;">{{mv.title}}</span>: <span class="num" style="font-size:0.65rem;">{{mv.data}}</span></div>
							</div>
						<div class="options" style="margin-bottom:0.2rem;word-wrap: break-word; word-break: normal; ">
								<span ng-repeat="o in g.options" ng-class="{'jylabel jylabel-red':1,'active':g.optionid==$index}" ng-click="pagedata.setoptionid($index,gkey);g.optionid=$index;g.price=o.price" style="margin:0.2rem;line-height:2.2">{{o.title}}  ￥{{o.price}}</span>
						</div>
						<div class='price' style="line-height:1.3">		
							<span class="bigprice text-danger" style="font-size:0.65rem;">￥<span class='marketprice' style="font-size:0.65rem;">{{g.price}}</span></span>
							<div class="fui-number small r-f">
								<div class="fui-number small ">
									<div class="minus" ng-click="pagedata.minus($index)">-</div>
									<input class="num shownum" type="tel" ng-model="g.total" style="font-size:0.65rem;" readonly="readonly"/>
									<div class="plus " ng-click="pagedata.plus($index)">+</div>
								</div>
							</div>
						</div>
				</div>
				</div>
				<div class="fui-list goods-item" style="padding:0.2rem;color:#000"><span>合计：</span><span class="price">￥{{pagedata.totalprice || '0.00'}}</span></div>
			</div>
			
			<div ng-if="pagedata.item.type ==5" class="fui-list-group">
				<div ng-repeat="g in pagedata.item.fileds" ng-repeat="" class="fui-list goods-item align-start" style="border:1px solid #f7f7f7;">
					<div class="fui-list-media image-media" ng-if="g.image">
						<img ng-src="{{tomedia(g.image) || '../core/resource/images/nopic.jpg'}}" class="">
					</div>
					<div class="fui-list-inner"  ng-click="pagedata.setpingxuan($index);">
						<div class="title">
									<span>{{g.data}}</span>
									<span class="r-f"><i ng-class="{'icon':1, 'icon-good':g.selected!=1,'icon-good-filling green':g.selected==1}"></i>+{{g.nums || 0}}</span>
						</div>
						<div class="info">
									<div class="l-f" style="padding-top:1.0rem;"><img ng-repeat="v in g.jieli" ng-src="{{tomedia(v.member.avatar) || '../core/resource/images/gw-user.png'}}" class="round" style="height:0.66rem;width:0.66rem;border-radius: 100%"></div>
									<div ng-if="g.selected==1" class="r-f" style="padding-top:0.3rem;"><i  class="icon icon-selected green" style="font-size:2rem"></i></div>
						</div>
					</div>
				</div>
			</div>
			<div class="fui-cell-group fui-more-group" ng-if="pagedata.item.address">
				<div class="fui-cell" style="padding:0">
					<div class="fui-tag"><i class="icon icon-map" style="font-size:0.66rem"></i></div>
					<div class="fui-cell-text" style="color:#333;margin-top:0.5rem" ng-click="pagedata.openLocation();">
						<div style="width:100%;"><span style="color:#61bba7">{{pagedata.item.address || '暂时无地址'}} </span> ({{pagedata.item.type==7?'联系地址':'活动地址'}})</div>
						<div class="subtitle" style="width:100%;margin-top:0.2rem">{{pagedata.item.address || '暂时没有详细地址提供！'}}</div>
					</div>
				</div>
			</div>
			<div ng-if="(pagedata.item.fileds.length>0 || pagedata.item.diyform>0) && pagedata.item.type !=1 && pagedata.item.type !=4 && pagedata.item.type !=5" class="fui-cell-group fui-more-group" style="">
				<div class="fui-cell" style="padding:0.5rem;background-color: #def9eb;border-radius: 10px;">
					<div class="fui-cell-info">
						<div class="title" style="margin:0.2rem 0">接龙的内容 <span ng-if="pagedata.item.type !=4 && pagedata.item.type !=0 && pagedata.item.type !=3" class="price">￥{{pagedata.item.fee ||'0.00'}}</span></div>
						<div ng-if="pagedata.item.type !=0 && pagedata.item.fileds.length>0" class="fui-cell-group" style="border-radius: 10px;">
						<div ng-repeat="row in pagedata.item.fileds" class="fui-cell">
						<div ng-if="pagedata.item.type !=3" class="fui-cell-info">
							<div class="title" style="margin:0.2rem 0">内容{{$index+1}}</div>
							<div class="subtitle" ng-repeat="(k,f) in row" style="font-size:0.6rem;color:#999"><span>{{f.title}}</span><span class="r-f bold">{{f.data}}{{f.type==18?'元':''}}</span></div>
						</div>
						<div ng-if="pagedata.item.type ==3" class="fui-cell-info">
									<div class="subtitle">
										{{row.title}}
									</div>
									<div class='price' style="line-height:1.3">		
										<span class="bigprice text-danger">￥<span class='marketprice'>{{row.price}}</span></span>
									</div>
						</div>
						<div ng-if="pagedata.item.type ==3" class="fui-cell-ramark noramark">
							<div class="fui-number small r-f">
								<div class="fui-number small">
									<div class="minus" ng-click="pagedata.minus($index)">-</div>
									<input class="num shownum" type="tel" ng-model="row.total" readonly="readonly"/>
									<div class="plus " ng-click="pagedata.plus($index)">+</div>
								</div>
							</div>
						</div>
						</div>
						<div class="fui-list goods-item" style="padding:0.5rem;"><span>合计：</span><span class="price">￥{{pagedata.totalprice || '0.00'}}</span></div>
					</div>
						<div class="subtitle" ng-repeat="d in pagedata.item.diyform" style="font-size:0.6rem;color:#999">
						<span>{{$index+1}}、{{d.title}}</span>
						<!--<span ng-if="d.type !=4 && d.type !=5" class="r-f bold">{{d.data}}</span>
						<span ng-if="d.type ==4 || d.type ==5" class="r-f bold">
							<span class="red">{{d.typename}}</span>:
							<span ng-repeat="tab in d.data">{{tab.title}}</span>
						</span>-->
						</div>
					</div>
				</div>
			</div>
			<div class="fui-icon-group noborder col-4 selecter">
                <div class="fui-icon-col external" ng-click="access_json(main.current_plugin+'/index//quanid='+pagedata.user.mid)">
                    <div class="icon icon-green radius" style="height:1.5rem;"><i class="icon icon-shouye" style="font-size:16px;color:#09ba07;"></i></div>
                    <div class="text" style="color: #999;">我的首页</div>
                </div>
				<div class="fui-icon-col external">
                    <div class="icon icon-green radius" style="height:1.5rem;font-size:16px;color:#09ba07;">{{pagedata.item.looks || 0}}</div>
                    <div class="text" style="color: #999;">围观人数</div>
                </div>
				<div class="fui-icon-col external">
                    <div class="icon icon-green radius" style="height:1.5rem;font-size:16px;color:#09ba07;">{{pagedata.item.fromusernum}}</div>
                    <div class="text" style="color: #999;">我带来的人</div>
                </div>
				<div class="fui-icon-col external" ng-click="access_json('feelog/')">
                    <div class="icon icon-green radius" style="height:1.5rem;"><i class="icon icon-xinyongqiahuankuan" style="font-size:16px;color:#09ba07;"></i></div>
                    <div class="text" style="color: #999;">我的凭证</div>
                </div>
			</div>
			<a ng-if="pagedata.item.type ==2 && !pagedata.item.isgetred && pagedata.isme !=1" href='javascript:;' ng-click="pagedata.showredpack()" class='btn btn-red block' style="margin:0.2rem 0;color:#fff"><i class="icon icon-wodezichan"></i> 抢红包</a>
			<a ng-if="pagedata.item.type ==2 && (pagedata.item.isgetred || pagedata.isme ==1)" class='btn btn-red block' ng-click="access_json('/getred/look/pid='+pagedata.item.id)" style="margin:0.2rem 0;color:#fff"><i class="icon icon-wodezichan"></i> {{pagedata.isme ==1?'不能抢自己的,查看记录':'已抢红包,查看记录'}}</a>
			<a ng-if="pagedata.item.goodsid==0 && pagedata.item.endstatus==1 && pagedata.item.type !=4 && pagedata.item.type !=5 && pagedata.item.type !=8 && pagedata.item.type !=7 && (pagedata.item.isjielong !=1 || pagedata.pluginset.is_jiemore==1)" href='javascript:;' ng-click="pagedata.upjieli();" class='btn btn-success block' style="margin:0.2rem 0;">{{pagedata.item.isjielong ==1?'我要再次接龙':'我要接龙'}}</a>
			<a ng-if="pagedata.item.goodsid!=0 && pagedata.item.endstatus==1 && pagedata.item.type !=4 && pagedata.item.type !=5 && pagedata.item.type !=8 && pagedata.item.type !=7 && (pagedata.item.isjielong !=1 || pagedata.pluginset.is_jiemore==1)" href='javascript:;' ng-click="access_json('jy_weishop/goods.detail//plugin_name=jy_quan&frompid='+pagedata.item.id+'&id='+pagedata.item.goods.id)" class='btn btn-success block' style="margin:0.2rem 0;">{{pagedata.item.isjielong ==1?'我要再次接龙':'我要接龙'}}</a>
			<a ng-if="pagedata.pluginset.is_jiemore!=1 && pagedata.item.endstatus==1 && pagedata.item.type !=4 && pagedata.item.type !=5 && pagedata.item.type !=8 && pagedata.item.type !=7 && pagedata.item.isjielong ==1 && (pagedata.isme !=1 || pagedata.user.open_xuni!=1)" href='javascript:;' class='btn btn-success block disabled' style="margin:0.2rem 0;">您已接龙</a>
			<a ng-if="pagedata.item.endstatus==1 && pagedata.item.isjielong ==1 && pagedata.isme ==1 && pagedata.user.open_xuni==1" class='btn btn-success block' href='javascript:;' ng-click="pagedata.upjieli(1);" style="margin:0.2rem 0;">虚拟接龙</a>
			<a ng-if="pagedata.item.endstatus==0 && pagedata.item.type !=7 && pagedata.item.type !=4 && pagedata.item.type!=8" class='btn btn-success block disabled' style="margin:0.2rem 0;">接龙已结束（{{pagedata.item.onlinetime}}）</a>
			<!--<div class="subtitle c">参与接龙有随机惊喜，已领取6/10个</div>-->
			<div ng-if="pagedata.item.type==8" style="padding:0.3rem">
				<a ng-if="pagedata.item.islike !=1" ng-click="pagedata.setlike()" class="weui_btn weui_btn_primary"><i class="icon icon-good"></i> 点赞</a>
				<a ng-if="pagedata.item.islike ==1" class="weui_btn weui_btn_primary disabled"><i class="icon icon-good-filling"></i> 已点赞</a>
			</div>
			<div ng-if="pagedata.item.type ==8" class="text text-parent" ng-if="pagedata.item.likes.length>0" style="padding:0.25rem 0.5rem;background-color: #f9f9f9;border-radius: 0.25rem;">
				<div style="padding:0.2rem" ng-if="pagedata.item.type ==8"><span>我带来的赞数：{{pagedata.item.mygoodsum || '0'}}</span><span class="r-f red">集赞任务：{{pagedata.item.goodsum}}个</span></div>
				<div class="subtitle">
						<span><i class="icon icon-favorites" style="font-size:0.55rem"></i></span>
						<span ng-repeat="a in pagedata.item.likes" style="margin-left:0.2rem;font-size:0.55rem"> 
							<span><image ng-src="{{a.member.avatar || '../core/resource/images/gw-user.png'}}" style="border-radius: 100%;width:0.6rem;height:0.6rem"/></span>
							{{a.member.nickname}}
						</span>
				</div>
			</div>
			<div ng-if="pagedata.item.type !=8" class="item-buy-log">
				<div ng-repeat="j in pagedata.item.jieli" ng-if="pagedata.item.share_set!=1" style="font-size:0.65rem"><span>{{j.number}}.<span><image ng-src="{{tomedia(j.member.avatar) || '../core/resource/images/gw-user.png'}}" style="border-radius: 100%;width:0.6rem;height:0.6rem"/></span> {{j.member.nickname}}</span><span style="margin-top:0.5rem;font-size:0.45rem;color:#999"> {{j.createtime || '1月28日'}}</span><span style="float:right">{{pagedata.typetitle || '活动'}}接力+1</span></div>
				<div ng-if="pagedata.item.share_set==1" style="font-size:0.65rem"><span>******接龙记录已被发布者隐藏！</span></div>
				<div style="margin:0.2rem;font-size:0.65rem;color:#999"><span>有{{pagedata.item.looks || 0}}人看过 {{pagedata.item.jielinum || 0}}人参与</span><span ng-if="pagedata.item.jieli.length>36" style="color:#09ba07;float:right">点击查看更多...</span></div>
			</div>
			<div class="item-buy-log" ng-if="pagedata.item.type ==4">
				<div style="font-size:0.65rem;text-align:center;color:#09ba07">已查看，请标记阅读及留言</div>
				<div class="row" style="margin:0.2rem;font-size:0.65rem;color:#999">
					<div class="jy-2 l-f" style="padding:0.3rem"><a ng-click="pagedata.setmsg(0);" class="weui_btn weui_btn_plain_primary">留言</a></div>
					<div class="jy-2 l-f" style="padding:0.3rem">
						<a ng-if="pagedata.item.isjielong !=1" ng-click="post({},'readjieli');pagedata.item.isjielong =1" class="weui_btn weui_btn_primary">标记阅读</a>
						<a ng-if="pagedata.item.isjielong ==1" class="weui_btn weui_btn_primary disabled">已阅读接龙</a>
					</div>
				</div>
			</div>
			<div class="fui-searchbar bar" style="z-index: 0;padding:0">
				<div ng-class="{'searchbar':1,'searchbar-active':pagedata.searchbar ==1}" style="background:#fff">
						<div style="position: relative;left:0;top:0;">
							<div class="search-input" ng-click="pagedata.searchbar =1">
								<i class="icon icon-search" style="color: {iconcolor};"></i>
								<input type="search" placeholder="输入搜索" class="search" ng-model="pagedata.params.keyword" style="text-align: left; color: #999; font-size:0.65rem;background:#f9f9f9" />
							</div>
						</div>
				</div>
			</div>
			<a ng-if="pagedata.item.mobile" href="tel:{{pagedata.item.mobile}}" class='btn btn-success block' style="margin:1rem;border-radius: 1rem;"><i class="icon icon-phone"></i> 拨打电话</a>
			<div class="item-line-nav" ng-click="pagedata.setmsg(0);" >
				<i class="icon icon-shuru"></i> <span class="subtitle">已有{{pagedata.item.msgnum || 0}}条留言，快来说说您的感想吧！</span>
			</div>
			<div class="fui-cell-group fui-comment-group">	
				<div class="fui-cell external reply-list" ng-repeat="item in pagedata.item.msg" style="padding:0.2rem 0;align-items:stretch;-webkit-align-items:stretch">
					<div class="fui-list-media" style="width:2.3rem;margin-left:0.2rem;text-align:center;">
						<a class="reply-avatar l-f" ng-click="access_json('/user.index//id='+row.member.id)" style="height:100%;">
							<div><img ng-src="{{tomedia(item.member.avatar) || '../core/resource/images/gw-user.png'}}" class="round" style="height:2rem;width:2rem"></div>
							<div class="l-f bold" style="margin:0.2rem 0;width:100%;text-align:center;color:#000">{{item.floorid || 168}}</div>
							<div class="l-f" style="width:100%;text-align:center;font-size:0.56rem;color:#999">{{item.time || '02/25'}}</div>
							<div class="l-f" style="width:100%;text-align:center;font-size:2rem;color:#999;line-height:0.6;margin-top:-1rem">.</div>
							<div class="l-f" style="width:2px;margin:0.3rem 1.05rem;font-size:2rem;color:#999;height:100%;border-left: 2px solid #ebebeb;"></div>
						</a>
					</div>
					<div class="fui-list-inner">
						<div class="text click">
							<span style="font-size:0.56rem;color:#999">{{item.member.nickname || '匿名'}}</span>
							<span class="pull-right" style="font-size:0.56rem;color:#666">{{item.createtime || '2019-01-22 09:46'}}</span>
							<span ng-if="row.isAuthor==1" class="level-label fui-label fui-label-warning level-label">楼主</span>
						</div>
						<div class="text text-reply click bold" style="padding:0.2rem">{{item.title || '转发成功'}}</div>
						<div class="text text-time" style="height:1rem;margin:0.2rem">
							<div class="pull-right">
								<a ng-click="pagedata.setmsg(item.id);" class="link link-reply" style="font-size:0.5rem;color:#999"><i class="icon icon-pingjia3" style="font-size:0.5rem;color:#999"></i> 回复&nbsp;&nbsp;</a>
								<a ng-click="post({'cid':item.id},'msglike')" class="link link-good" isgood="0"><i class="icon icon-good" ng-class="{'fill':row.isgood>0}" style="font-size:0.5rem;color:#999"></i>
								   <span class="zandiv" style="font-size:0.5rem;color:#999">赞</span>
									&nbsp;&nbsp;</a>
								<!--<a ng-click="access_json('/post.index/complain/id='+pagedata.post.id)" class="link link-complain-list" data-id="9">
									<i class="icon icon-warning" style="font-size:0.5rem;color:#999"></i> <span style="font-size:0.5rem;color:#999">投诉</span>
								</a>-->
								<a ng-if="pagedata.isManager==1 || pagedata.isSuperManager==1" href="javascript:;" class="link link-delete" style="font-size:0.5rem;color:#999"><i class="icon icon-delete" style="font-size:0.5rem;color:#999"></i> 删除</a>
							</div>
						</div>
						<div class="text text-parent" ng-if="item.msglike.length>0 || item.msg.length>0" style="padding:0.5rem;background-color: #f9f9f9;border-radius: 10px;">
							<div class="item-follow-line" ng-if="item.msglike.length>0">
								<span><i class="icon icon-favorites" style="font-size:0.56rem"></i></span><span ng-repeat="a in item.msglike"> {{a.member.nickname}}</span>
							</div>
							<div class="item-msg-line" ng-repeat="m in item.msg"><span class="org" style="color:#999;">{{m.member.nickname}}</span>: {{m.title}}</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<!--分享弹层-->
<div id="showsharecover" class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
<div class="modal-dialog" style="width:100%;left:0;top:0">
	<div id="cover">
		<div class='fui-mask-m visible'></div>
		<div class='arrow'></div>
		<div class='content'>请点击右上角<br/>通过【发送给朋友】<br/>转发给好友哦</div>
	</div>
</div>
</div>
<!-- 红包弹层 -->
<div id="showredpage" class="modal fade" tabindex="-1" style="z-index:99999;display:none;" data-backdrop="static">
<div class="modal-dialog" style="width:100%;left:0;top:0">
	<div style="position:fixed;left:30px;top:30px;right:30px;color:#ffcc00">
      <div style="height:380px;background-color:#c70000;border-radius:8px;text-align:center">
        <div style="height:300px;background-color:#e52600;border-top-left-radius:8px;border-top-right-radius:8px;border-bottom-left-radius:50% 40px;border-bottom-right-radius:50% 40px;box-shadow:0 1px 2px brown">
          <div class="js-who" style="padding-top:30%;padding-bottom:5px;">
            <img class="js-avatar" src="../core/resource/images/nopic.jpg" width="20px" height="20px" style="display:inline-block;border-radius:3px;margin-right:5px;" />
            <span class="js-text" style="">XXXX的红包</span>
          </div>	
          <div class="js-title" style="font-size:1.3em;font-weight:bold;">YYYYYY</div>
        </div>
        <div style="display:inline-block;position:relative;top:-40px;background-color:#FFCC66;border-radius:50%;width:80px;height:80px;line-height:80px"
             ng-click="pagedata.hideredpack();access_json('/getred/getred/pid='+pagedata.item.id)">
          <span style="font-size:32px;color:#e52600;">開</span>
       	</div>
      </div>
    
      <div style="text-align:center;margin-top:10px">
      	<i class="icon icon-cuowu" ng-click="pagedata.hideredpack()" style="font-size:1.5rem;"></i>
      </div>
  </div>
</div>
</div>


<!--留言-->
<div id="showremark"  class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
	<div class="modal-dialog" style="width:100%;left:0;bottom:0">
		<div class="modal-bottom">
			<div class="fui-cell-group">
				<div class="fui-cell">
					<div class="fui-cell-label" style="width:100px;font-size:0.9rem">留言</div>
				</div>
				<div class="fui-cell">
					<div class="fui-cell-info c000">
						<textarea rows="5" placeholder="50字以内（选填）" ng-model="pagedata.post.msg"></textarea>
					</div>
				</div>
			</div>
			<div class="fui-navbar">
				<a aria-hidden="true" data-dismiss="modal" ng-click="post(pagedata.post,'setmsg')" class="nav-item btn btn-success confirmbtn">确定</a>
			</div>
		</div>
	</div>
</div>
<!--拼团阶梯-->
<div id="showgroupbuyfloor"  class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
	<div class="modal-dialog" style="width:100%;left:0;bottom:0">
		<div class="modal-bottom">
			<div class="fui-cell-group">
				<div class="fui-cell">
					<div class="fui-cell-label" style="width:100px;font-size:0.9rem">拼团阶梯</div>
				</div>
			</div>
			<div class="item-up-content item-ng">
					<div class="weui_cells" ng-repeat="item in pagedata.item.groupbuyfloor track by $index">
						<div class="weui_cell">
							<div class="weui_cell_bd weui_cell_primary">成团{{pagedata.item.groupbuytype==1?'总额':'总数'}}（阶梯{{$index+1}}）</div>
							<div class="weui_cell_ft">
								{{item.totle}}
							</div>
						</div>
						<div class="weui_cell">
							<div class="weui_cell_bd weui_cell_primary">拼团折扣</div>
							<div class="weui_cell_ft">
								{{item.zhekou}}折
							</div>
						</div>
					</div>
			</div>
		</div>
	</div>
</div>
<div class="fui-navbar" ng-if="pagedata.isme ==1">
	<a href="javascript:;" ng-click="access_json(main.current_plugin+'/index/')" class="external nav-item">
        <span class="icon jinyunicon icon-shouye" style="color:#09ba07"></span>
        <span class="label" style="color: #09ba07;">首页</span>
    </a>
	<a href="javascript:;" ng-click="access_json('feelog/')" class="external nav-item">
        <span class="icon jinyunicon icon-xinyongqiahuankuan" style="color:#09ba07"></span>
        <span class="label" style="color: #09ba07;">凭证管理</span>
    </a>
    <a href="javascript:;" ng-click="access_json('/upitem//id='+pagedata.item.id)" class="external nav-item">
        <span class="icon jinyunicon icon-shuru" style="color:#09ba07"></span>
        <span class="label" style="color: #09ba07;">修改接龙</span>
    </a>
	<a class="external nav-item">
        <span class="icon" style="color:#09ba07">{{pagedata.item.looks}}</span>
        <span class="label" style="color: #09ba07;">人来过</span>
    </a>
</div>
<!--图片放大-->
<div id="show_bigimage" class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
<div class="modal-dialog" style="width:100%;left:0;top:0;bottom:0;background:#000">
	<div id="cover" aria-hidden="true" data-dismiss="modal" style="background: url('{{tomedia(pagedata.showimage)}}') no-repeat 50% 0;background-size:100%;background-position:center center">
	</div>
</div>
</div>
<div ng-if="pagedata.isme !=1" ng-include="sys_html('_footer')"></div>
<script>
scope.pagedata.openLocation=function(){
	wx.openLocation({
		name: scope.pagedata.item.title, // 位置名
		address: scope.pagedata.item.address, // 地址详情说明
		scale: 20, // 地图缩放级别,整形值,范围从1~28。默认为最大
		infoUrl: '', // 在查看位置界面底部显示的超链接,可点击跳转
		success:function(){
			//alert(1111);
		}
	});
}
</script>
<script>
scope.pagedata.post = {}
scope.pagedata.post.money = 10
scope.pagedata.showhongbao=function(){
	$('body').addClass('fixed');
	$('#showhongbao').modal();
}
scope.pagedata.show_bigimage=function(img) {
	scope.pagedata.showimage=img;
	$('#show_bigimage').modal();
}
//获取点赞
scope.pagedata.setlike=function(){
	scope.post_json('jy_quan/item/like/',{'like':scope.pagedata.item.islike},function(res){
		if(res.success == 1){
				scope.message('点赞成功！');
				scope.pagedata.item.islike=1;
				scope.pagedata.opus.likes++
				scope.$evalAsync();
		}
	});
}
//收藏
scope.pagedata.setshoucang=function(){
	scope.post_json('jy_quan/item/shoucang/',{'isshoucang':scope.pagedata.isshoucang},function(res){
		scope.message(res)
	});
}
//获取关注
scope.pagedata.setfollow=function(){
	scope.post_json('jy_quan/item/follow/',{},function(res){
		scope.message(res)
	});
}
//获取评选
scope.pagedata.setpingxuan=function(index){
	var fileds = scope.pagedata.item.fileds
	for (var i=0;i<fileds.length;i++){
		if(fileds[i].selected =='1'){
			scope.message('只能选择一次！','error');
			return false;
		}
	}
	var g = scope.pagedata.item.fileds[index]
	g.nums =g.nums?g.nums:0;
	scope.post_json('jy_quan/item/pingxuan/',{'index':index},function(res){
				if(g.selected !=1){
					g.nums++
					g.selected =1
				}else{
					g.nums--
					g.selected =0
				}
				scope.pagedata.item.fileds[index] = g
				scope.$evalAsync();
	});
}
//获取留言
scope.pagedata.getmsg=function(){
	scope.post_json('jy_quan/item/getmsg/',{},function(res){
		scope.message(res)
	});
}
//提交留言
scope.pagedata.setmsg=function(cid){
	$('#showremark').modal();
	scope.pagedata.post.cid =cid;
}
//减少
scope.pagedata.minus=function(index){
	var g = scope.pagedata.item.fileds[index]
	if(g.total<=0){
		return false;
	}
	scope.post_json('jy_quan/item/setfileds/',{'type':0,'index':index},function(res){
			g.total--;
			scope.pagedata.item.fileds[index] = g
			scope.pagedata.refresh();
			scope.$evalAsync();
	});
}
//增加
scope.pagedata.plus=function(index){
	var g = scope.pagedata.item.fileds[index]
	scope.post_json('jy_quan/item/setfileds/',{'type':1,'index':index},function(res){
			g.total++;
			scope.pagedata.item.fileds[index] = g
			scope.pagedata.refresh();
			scope.$evalAsync();
	});
}
//选择规格
scope.pagedata.setoptionid=function(optionid,index){
	scope.post_json('jy_quan/item/setfileds_optionid/',{'optionid':optionid,'index':index},function(res){
		scope.pagedata.refresh();
	});
}
//刷新总数和总价
scope.pagedata.refresh=function(){
	var total=0,totalprice=0.00;
	angular.forEach(scope.pagedata.item.fileds,function(g){
		total+=parseInt(g.total);
		totalprice+=g.total*g.price;
	});
	totalprice = totalprice.toFixed(2);
	scope.pagedata.total=total;
	scope.pagedata.totalprice=totalprice;
}
// 红包弹层
scope.pagedata.showredpack = function() {
	var params={
		op:'pregetred',
      	data: {
          pid: scope.pagedata.item.id
        },
		callback:function(res){
          	$('#showredpage').find('.js-avatar').attr('src', res.red_sender_avatar);
          	$('#showredpage').find('.js-text').text(res.red_sender_name + '的红包');
          	$('#showredpage').find('.js-title').text(res.red_title);
			$('#showredpage').modal('show');
		}
	};
	scope.post_json(params);
}
scope.pagedata.hideredpack = function() {
	$('#showredpage').modal('hide');
}
scope.pagedata.upjieli = function(is_xuni){
	if(scope.pagedata.item.type ==1){
		var total=0;
		angular.forEach(scope.pagedata.item.fileds,function(g){
			total+=parseInt(g.total);
		});
		if(total<=0){
			scope.message('请选择一个商品！','error');
			return false;
		}
	}
	if(is_xuni){
		scope.access_json('/upjieli//is_xuni=1&pid='+scope.pagedata.item.id)
	}else{
		scope.access_json('/upjieli//pid='+scope.pagedata.item.id)
	}
	
}	
</script>